/*
 *  codebook.h
 *  opencvTest
 *
 *  Created by a1gucis on 3/1/09.
 *  Copyright 2009 __MyCompanyName__. All rights reserved.
 *
 */
#ifndef CODEBOOK_H
#define CODEBOOK_H
#include <iostream>
#include "systeminclude.h"
#define CHANNELS 3

using namespace std;
class CodeElement{
public:
	uchar learnHigh[CHANNELS]; //High side threshold for learning 
	uchar learnLow[CHANNELS];  //Low side threshold for learning 
	uchar max[CHANNELS];       //High side of box boundary 
	uchar min[CHANNELS];       //Low side of box boundary 
	int t_last_update;          //Allow us to kill stale entries 
	int stale;                  //max negative run (longest period of inactivity) 	
};

class CodeBook{
public:
	CodeElement **cb; 
	int numEntries; 
	int t;         //count every access 
	
};
#endif